package nc.impl.yst;

import nc.bs.dao.BaseDAO;
import nc.bs.dao.DAOException;
import nc.itf.yst.BLTDSqlService;

public class BLTDSqlServiceImpl implements BLTDSqlService {

	@Override
	public int updateIsToRc(String pk_head) throws DAOException {
		BaseDAO dao = new BaseDAO();
		String sql = "update yst_bltd_h set istorc='Y' where dr=0 and  pk_head='"+pk_head+"'";
		return dao.executeUpdate(sql);
	}

	@Override
	public int updateIsToCc(String pk_head) throws DAOException {
		BaseDAO dao = new BaseDAO();
		String sql = "update yst_bltd_h set istocc='Y' where dr=0 and pk_head='"+pk_head+"'";
		return dao.executeUpdate(sql);
	}

}
